
#include "updater.types.h"
#include "updater.w.h"
#include "updater.h"
#include "updater.errors.h"
#include "updater.compressor.h"


#if 0
INT DefaultCompressor (VOID * pv_ucore,  INT i_status)
{
	INT i_rv;
	ucore_t * ps_ucore = (ucore_t *) pv_ucore;

    /* Compress / decompress buffer */
	i_rv= compress2 (ps_ucore->buffers.buffer_in, 
					ps_ucore->buffers.size_in, 
					ps_ucore->buffers.buffer_out, 
					*ps_ucore->buffers.size_out, 
					9);

    

	/*	check was there error or not */
	switch ( i_rv)
	{
	case Z_MEM_ERROR:
	    PRINT("Compression memory error\n");
	    RETURN( - ENOMEM );

	case Z_BUF_ERROR:
	    PRINT("Output buffer too small\n");
	    RETURN( - ENOMEM );

	default:
	/*		  PRINT("out: %u\n", (unsigned int) compressed_data_size);	*/
	    break;
	}

	RETURN( OK );
}


#endif
